fix(docs): alert-dialog and sheet publish trigger/content as optional - #7944
Merged
Merged
Conversation
`alert-dialog.mdx:30` (trigger) and `sheet.mdx:26/:29` (trigger/content) published these node slots as required while AlertDialogSchema and SheetSchema (and their Zod mirrors) already declare them optional -- objectui#7073's defect class, left unaddressed on these two pages. Flip the three `?`. No declaration changes. Moves the three rows in overlay-node-slot-doc-types-7082.test.ts from "requiredness divergences" to the corrected/agreeing side, alongside the ContextMenuSchema control #7073 already fixed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013uAaxiwgYDybsTNV9xwa1M
baozhoutao
marked this pull request as ready for review
September 6, 2026 04:03
Contributor
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #7106
What
alert-dialog.mdx:30(trigger) andsheet.mdx:26/:29(trigger/content) published these node slots as required.AlertDialogSchemaand
SheetSchema(packages/types/src/overlay.ts) and their Zod mirrors(
zod/overlay.zod.ts) already declare all three optional — objectui#7073'sdefect class (the pages refuse what the platform accepts), left on these two
pages after #7073 fenced itself to
context-menu.mdx/dropdown-menu.mdx.Fix is the mechanical one the card names: flip the three
?, no declarationchanges.
Pin file
The divergence was already machine-recorded in
packages/types/src/__tests__/overlay-node-slot-doc-types-7082.test.ts(
describe('requiredness divergences left to the objectui#7073 class …')).Moved the three rows to the corrected/agreeing side, merged into the same
it.eachas theContextMenuSchemacontrol #7073 already fixed, and updatedthe file's top-of-file JSDoc note. Proved the coupling both ways:
target rows —
AlertDialogSchema.trigger/SheetSchema.trigger/SheetSchema.contenteach failed
expect(docRow(...).optional).toBe(false)(receivedtrue).Gates run locally
overlay-node-slot-doc-types-7082.test.ts(vitest)pnpm --filter @object-ui/types type-checktsc --noEmit && tsc -p tsconfig.examples.json && tsc -p tsconfig.test.json)node scripts/check-doc-fence-languages.mjsnode scripts/check-doc-component-types.mjsnode scripts/check-doc-links.mjsnode scripts/check-control-bytes.mjsnode scripts/check-changeset-presence.mjs.changeset/overlay-slot-requiredness-7106.mdnode scripts/check-governed-queue-guard.mjs --test <4 changed paths>Scope
Only the three
?on the two pages, plus the pin-file move and anempty-frontmatter changeset (docs-only, releases nothing). No declaration
changes (
overlay.ts/zod/overlay.zod.tsuntouched — they were alreadycorrect).
alert-dialog.mdx's deeper Schema-fence divergence (#7104) isCLOSED and, measured on this branch's base, left these three rows untouched —
no entanglement remained, so both pages land in this one PR per PM ruling.
Generated by Claude Code